package org.cloud.ext.mq.provider;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * direct 模式
 * @author xukk
 * @date 2020/3/9
 */
@Component
public class DirectProvider {

    private final RabbitTemplate rabbitTemplate;

    @Autowired
    public DirectProvider(RabbitTemplate rabbitTemplate) {
        this.rabbitTemplate=rabbitTemplate;
    }

}
